<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8"/>
    <title>主页</title>
</head>
<body>

<a href="/loginPage">login</a>
<a href="/logout">logout</a>
<p shiro:hasRole="role1">user1角色</p>
<p shiro:hasRole="role2">user2角色</p>
<p shiro:hasPermission="permission1">permission1权限</p>
<p shiro:hasPermission="permission2">permission2权限</p>
<a href="/role1">跳转role1页面</a>
<a href="/role2">跳转role2页面</a>
</body>
</html>